<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>euv-demo-问卷-登录</title>
</head>
<body>
    <header>
        <img src="../favicon.png" alt="">
        <h2 style="margin: auto 0;">CYue问卷</h2>
        <nav class="header-nav">
            <ul class="nav-menu">
                <li>
                    <a href="../index.html">首页</a>
                </li>
            </ul>
        </nav>
    </header>
    <h1 class="text-center" style="margin-top: 2em;">登录</h1>

    <div id="app">
        <form @submit="submitLogin">
            <div class="flex-column gap-05em">
                <label for="input-username">
                    用户名
                </label>
                <div>
                    <input
                        id="input-username"
                        type="text"
                        e-model:value="formData.username"
                        required
                    >
                </div>
            </div>
            <div class="flex-column gap-05em">
                <label for="input-password">
                    密码
                </label>
                <div>
                    <input
                        id="input-password"
                        type="password"
                        e-model:value="formData.password"
                        required
                    >
                </div>
            </div>
            <div class="flex-row gap-1em">
                <input type="submit" value="登录">
                <input type="button" @click="gotoIndex" value="回到首页">
            </div>
        </form>
    </div>

    <footer>
        <p>&copy; 2024 洪炜斐</p>
    </footer>
</body>
</html>

